﻿using DXBase;
using DXBase.D3D;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DXBase.D3D
{
	public static class DXEx
	{
		/// <summary>
		/// Create the buffer array automatically!
		/// </summary>
		public static void SetConstantBuffers(this D3DGraphic g, uint slot, ShaderType sdt, params DXBase.D3D.Buffer[] buffers)
		{
			g.SetConstantBuffers(slot, sdt, buffers);
		}
		/// <summary>
		/// Create the states array automatically!
		/// </summary>
		public static void SetStateSamplers(this D3DGraphic g, uint slot, params SamplerState[] states)
		{
			g.SetStateSamplers(slot, states);
		}
		/// <summary>
		/// Create the texs array automatically!
		/// </summary>
		public static void SetShaderResources(this D3DGraphic g, uint slot, params IResource[] texs)
		{
			g.SetShaderResources(slot, texs);
		}
	}
}
